<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<%@ taglib uri="/WEB-INF/tlds/att.tld" prefix="att"%>
<html>

<head> 
	<meta name="decorator" content="sysIndex"/> 
<script type="text/javascript"> 
		//验证历史版本

	 $.validator.setDefaults({
			submitHandler: function() { alert("submitted!"); }
		});
	$(document).ready(function() {
		
	});

</script>

</head>
<body>
	<div class="panel panel-default">
				  <div class="panel-heading">
				    <h3 class="panel-title">消息模板编辑
				    <a class="btn btn-default btn-sm pull-right o-a-button" role="button" href="javascript:void(0)" onclick="history.go(-1)">返回</a>
				    </h3>
				  </div>
				  <div class="panel-body">
					<form:form id="frm" modelAttribute="obj" action="${contextPath}/sys/msg/tpl/${modifyFlag }" method="post"
					   class="form-horizontal" role="form" onsubmit="">
						<form:hidden path="id"/>
						<div class="form-group">
						    <label for="code" class="col-sm-2 control-label">表达式代码:</label>
							<div class="col-sm-10">
								 <input id="code" type="text" name="code" class="form-control"
									value="${obj.code }"/>
							</div>
						</div>
						<tags:message content="${message}"/>
						<div class="form-group">
						    <label for="expression" class="col-sm-2 control-label">表达式模板:</label>
							<div class="col-sm-10">
								 <textarea  id="expression" name="expression" class="form-control"
									value="">${obj.expression }</textarea>
							</div>
						</div>
						<div class="form-group">
						    <label for="remark" class="col-sm-2 control-label">描述:</label>
							<div class="col-sm-10">
								 <textarea  id="remark" name="remark" class="form-control"
									value="">${obj.remark }</textarea>
							</div>
						</div>
						
						<div class="form-group">
						  <div class="col-sm-offset-2 col-sm-10">
						    <input class="btn btn-primary submit" type="submit"  value="保 存"/>
							<input class="btn btn-default" type="button" value="返 回" onclick="history.go(-1)"/>
						  </div>
						</div>
					</form:form>
				  </div>
				</div>	
</body>
</html>